package com.example.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.infrastructure.common.BasePO;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 医生排班表 PO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("doctor_schedules")
@Schema(name = "DoctorSchedules", description = "医生排班表")
public class DoctorSchedules extends BasePO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "医生ID")
    @TableField("doctor_id")
    private Long doctorId;

    @Schema(description = "排班日期")
    @TableField("schedule_date")
    private LocalDate scheduleDate;

    @Schema(description = "时段：1上午，2下午，3晚上")
    @TableField("period")
    private Byte period;

    @Schema(description = "开始时间")
    @TableField("start_time")
    private LocalTime startTime;

    @Schema(description = "结束时间")
    @TableField("end_time")
    private LocalTime endTime;

    @Schema(description = "总号源数")
    @TableField("total_num")
    private Integer totalNum;

    @Schema(description = "剩余号源数")
    @TableField("available_num")
    private Integer availableNum;

    @Schema(description = "状态：1可约，0停诊")
    @TableField("status")
    private Byte status;

    @Schema(description = "租户编号")
    @TableField("tenant_id")
    private Long tenantId;


}